package com.qingcloud.adminbackend.entity.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.beans.Transient;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * 事件通知方式配置及发送状态表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_message_notify")
public class SysMessageNotify extends Model {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * sys_message_event事件管理表id
     */
    @ApiModelProperty(value = "事件管理表id")
    private Integer eventId;


    @ApiModelProperty(value = "通知方式配置Id")
    private Integer configId;

    @ApiModelProperty(value = "接收者;定义：根据通知方式不同而不同")
    private String receiver;

    @ApiModelProperty(value = "发送状态1：发送成功；2发送失败")
    private Integer sendStatus;

    @ApiModelProperty(value = "备注扩展信息如：用户信息")
    private String remark;


    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDt;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime modifyDt;

    @ApiModelProperty(value = "通知方式类型")
    @TableField(exist = false)
    private String noticeType;

}
